﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class IJoyStick : MonoBehaviour{
    [HideInInspector]
    public bool isFirePressing;
    [HideInInspector]
    public bool isFireDown;
    [HideInInspector]
    public bool isFireUp;

    [HideInInspector]
    public float inputMoveVal;
    [HideInInspector]
    public Vector3 inputDirection;
    [HideInInspector]
    public Vector3 coarseDirection;

    void Awake()
    {
        coarseDirection = Vector3.back;//方便使敌人一开始默认朝下方
    }

    public void TurnCoarseDirClockWise()
    {
        Quaternion q = Quaternion.Euler(0, 90, 0);
        coarseDirection = q * coarseDirection;
    }

    public void TurnCoarseDirAnticClockWise()
    {
        Quaternion q = Quaternion.Euler(0, -90, 0);
        coarseDirection = q * coarseDirection;
    }

    public virtual void SetActive(bool active)
    {
        Debug.Log("IIIIIIIII j setActive=" + active);

    }
}
